PHP

Crell, (edited )
@Crell@phpc.social avatar

Hey . When you use union and intersection types, do you include spaces?

(RT for reach, etc. This is survey data for @phpfig. If you know of any official policies by major projects already, please note/link in the replies.)

oliver,
@oliver@phpc.social avatar

@Crell it depends. If the class names are long, or if there are many of them, then I put the spaces in between in order to visually scan them faster. There are no fixes rules.

Or... maybe to rephrase: no spaces until my eyes hurt and it looks like a mess.

tress777,
@tress777@phpc.social avatar

@Crell @phpfig no spaces, just like in phpdoc. I say this as a white space fanboy.

leanpub,
@leanpub@mastodon.social avatar

Advanced Web Application Architecture https://leanpub.com/web-application-architecture by Matthias Noback is the featured book on the Leanpub homepage! https://leanpub.com

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Durango
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • ethstaker
  • JUstTest
  • InstantRegret
  • Leos
  • normalnudes
  • everett
  • khanakhh
  • osvaldo12
  • cisconetworking
  • modclub
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines