5 ms·
No Safe navigator: require 4 lines of code No ternary support: require 6 lines of code I'm glad Go does not have those, it makes the code less readable. It's
by Thaxll 5y ago
No Safe navigator: require 4 lines of code
No ternary support: require 6 lines of code
I'm glad Go does not have those, it makes the code less readable. It's only useful for simple operation and very often chained and abused.
- inopinatus 5y agoI very nearly got this ternary delight into FreeBSD src: if ((Lflag ? chown : lchown)(p->fts_accpath, s->st_uid, -1)) (void)printf(" not modified: %s\n", strerror(errno)); which relies on the identical signature of chown(2) and lchown(2) syscalls.
- takeda 5y agoThis reminds me of the posts from 15 years ago saying why not having clipboard on iPhone was better.
- philosopher1234 5y agoYour point being that there’s no such thing as features that are better left out? Hard to believe
- takeda 5y agoMy point is that people develop attachment to things they own and use, and it's harder to be objective.
- catlifeonmars 5y agoWell, obviously. GP used the phrase “compact and pretty”. It’s a bit of a stretch to interpret that as an objective statement. The charitable interpretation is that GP meant it to be subjective. Edit: I got confused which post you were replying to. My apologies.
- philosopher1234 5y agoThis is true of any defense ever made. Doesn’t say anything specific to this argument.
- userbinator 5y agoI really don't understand the hate that the ternary operator gets. If you know how to read if/else, you know how to read ?/:.