Closed gromgit closed 8 years ago
Heads up, we have a tip about them. Options:
@kurtextrem Whoops, missed Tip 18 somehow. :grimacing:
I dunno, it seems that tip doesn't go far enough in pointing out the really serious problems with using ~~
, even if you Know What You're Doing (and to be honest, I'm also pulling some of my own punches). Unlike !!
, the behavior of ~~
is not obvious in so many cases that even the most experienced developers are likely to get bit sooner or later.
Would you guys accept:
~~
could cause developers to tear their hair out, and position it as a counter to Tip 18 (so "Tip 18a"?)Or:
Revisiting seems good, but we should mark the "update" as new tip so that people read it (practically: add the d'ohs to tip 18 and send out the new part as 18a (which is not there in reality but in 18 included?))
OK, I'll work on an update PR to Tip 18 then.
:+1: Thanks for your work.
:clap:
Antipattern: ~~
TL;DR;
Don't say
~~
when you meanMath.floor()
Username
https://github.com/gromgit
Extra
Inspired by a recent update PR to Tip 49