![](https://cdn.userecho.com/characters/103.png?1)
-8
API: Settings.set should cast strings to the appropriate type
For example, Settings.set("word_wrap", "false") should be interpreted as Settings.set("word_wrap", False).
![](/s/cache/a9/9b/a99b2d9458eebaa6387ad4bf399c5b6c.png)
+1
Oktay Acikalin 13 year бұрын
General casting is a bad habit. Please don't implement such things. Programmers should do that on their own need.
![](https://cdn.userecho.com/characters/103.png?1)
0
guillermooo 13 year бұрын
We're talking about options here. They should be easy to set, and they certainly aren't if you need to do type conversion/parsing on your part. I fail to see why this would be dangerous in any way. Also, this behavior was as described in Sublime Text 1.
![](/s/cache/a9/9b/a99b2d9458eebaa6387ad4bf399c5b6c.png)
0
Oktay Acikalin 13 year бұрын
"Sublime Text 2" also sounds like "I want to do everything better than before and don't repeat bad habits". IMHO this is a good point in time not to repeat this. It's also better to avoid any exceptions from the standard way, which is being precise.
Customer support service by UserEcho