3 ms·
> consider "while 'false' :" as a perfectly valid start to an unbounded loop That sort of thing is ubiquitous in dynamically-typed languages. Even HTML: the st
by chrismorgan 5y ago
> consider "while 'false' :" as a perfectly valid start to an unbounded loop
That sort of thing is ubiquitous in dynamically-typed languages. Even HTML: the state of boolean attributes is determined by the attribute being set, regardless of its value, so <input disabled=false> will give you a nice disabled text box. Mind you, some attributes that you might think would be boolean actually aren’t, for varying reasons good and bad, e.g. autocomplete=on|off, aria-hidden=true|false.
- fomine3 5y agoEnjoy YAML with Norway. https://news.ycombinator.com/item?id=17359376 https://news.ycombinator.com/item?id=17359376