by spacey on 1/8/18, 1:42 PM with 115 comments
by pcwalton on 1/8/18, 5:23 PM
Actually, I wish Rust had done one thing that Go did: namespacing the pragmas. That would have been a more future-proof thing to do, because macros effectively give us user-definable pragmas, and once you have user-definable pragmas you have name collision problems. Kudos to the Go team for being forward-thinking there. I suspect we'll have to figure out some kind of solution here, but it won't be as pleasant as if we had just used namespaces in the first place.
by bla2 on 1/8/18, 2:31 PM
by tidwall on 1/8/18, 5:35 PM
by jonathanstrange on 1/8/18, 4:30 PM
It's time that language designers include language pragmatics in the core language. That includes for example big O information about data structures, packing of structures, alignment properties, memory access information, etc. Currently, in most if not all languages this information is spread all over levels, from nonstandardized compiler flags over pragmas up to the core language. It's a huge mess.
by yokohummer7 on 1/8/18, 4:32 PM
They bring back my painful memories of the old days when I had to use conditional comments to support IE6...
by tapirl on 1/8/18, 4:02 PM
by nerdponx on 1/8/18, 4:01 PM
by saagarjha on 1/8/18, 2:41 PM
Performance, maybe?
by cjslep on 1/8/18, 2:44 PM
Edit: Granted, this is not a directive for the compiler though.