4 ms·
What? how? Its in almost every programming language that I can think of.
by mark_story 14y ago
What? how? Its in almost every programming language that I can think of.
- flatline 14y agoMany IDEs have an option to auto-insert it after typing a "{". This is on by default in Eclipse.
- hkmurakami 14y agoLast night I learned that Microsoft Word 2010 will auto replace a ")" with a "}" if I type { stuff ). Does anyone know when this feature was implemented in Word?
- mkopinsky 14y agoWhat would the possible use for such a feature be? When in the world are non-programmers ever typing squiggly braces?
- samspot 14y agoSeems sensible enough. The editor just assumes that you want your thingies to match.
- hkmurakami 14y agoIn my case, I was writing documentation for our product :P Since it's being written on purpose as a 'product spec' like doc, company standards dictate that it be written in Word (unfortunately).
- mkopinsky 14y agoYeah, that makes sense. I could foresee some cases where I was writing something documentation-y, such that it made sense to do in Word, but aimed at developers, such that I'd want to include code samples or the like.
- ZoFreX 14y agoThey're completely valid brackets to use in writing. You don't tend to see them much but using different forms of brackets can add clarity to nested brackets (i.e. when you feel the urge to expand on your text in brackets [which I frequently do {and according to Wikipedia, others do too}])
- ebrenes 14y agoThanks so much for this bit of knowledge, I was not aware this was the grammatically accepted means of doing this. I always tried to reformulate sentences to avoid nested "expressions" due to the confusing nesting of parenthesis.
- yxhuvud 14y agoMust be fun for math people typing intervals that are semi-open.
- samspot 14y agoExactly, and I'm a java programmer. For the record Sublime Text also inserts these for me. When I had to type '}' in the training program I actually had to look down at my keyboard!