homakov (Egor Homakov)
- Login: homakov
- Email: mailto:homakov@gmail.com
- Registered on: 03/10/2012
- Last sign in: 01/26/2013
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
03/10/2012
-
03:37 PM Ruby Feature #6126: Introduce yes/no constants aliases for true/false
- @Dave wow, you win.
I just was jealous to this obj-c thing.
Anybody pls close the issue -
09:20 AM Ruby Feature #6126: Introduce yes/no constants aliases for true/false
- @ujihisa hrm.. Are you trying to inject english grammar in the logic? And, What is wrong with
"Didn't you eat sushi?": "Yes I did" = false
There is an ambiguity if you only use x.didnt_you_do_y? instead of x.did_you_do_y? and that is a v... -
08:39 AM Ruby Feature #6126: Introduce yes/no constants aliases for true/false
- It is good point but would you consider it like if/unless? they do same job but used in proper places.
p 1 if yes
p 2 unless no
Newbies learn rapidly. And 'yes/no' thing will be the first thing they will like in ruby(in the same tim... -
07:00 AM Ruby Feature #6126: Introduce yes/no constants aliases for true/false
- @sebastian Yes they are for programmers. And there were no need for C/C++/... because assembler commands were very well known among programmers. Is it fair enough?
PLs need to evolve. And move on with standards too.
I don't mind jokes ... -
06:21 AM Ruby Feature #6126: Introduce yes/no constants aliases for true/false
- References:
http://www.otierney.net/objective-c.html
it's common practice to define constants YES Yes in all languages and it seems widely used.
Plain and straight syntax. It's all about ruby, isn't it? :
puts -> p
null -> nil
... -
05:57 AM Ruby Feature #6126: Introduce yes/no constants aliases for true/false
- @sebastian will you forgive me if I ask you to align topic?
-
05:29 AM Ruby Feature #6126 (Rejected): Introduce yes/no constants aliases for true/false
- I propose to have predefined constants of TrueClass and FalseClass - yes/no accordingly.
Benefits:
1. 'truefalse'.size - 'yesno'.size = 4 (!)
2. much more understandable and reasonable words. Well known by everybody on this planet.
3...