Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > local vars with punctuation

Reply
Thread Tools

local vars with punctuation

 
 
listrecv@gmail.com
Guest
Posts: n/a
 
      04-27-2006
I really like Ruby's punctuation suffix conventions for methods.

It irks, me though, that I can't do:
def save_file(compress?)
or
attr_accessor :completed?

Why is final punctuation not allowed in vars?
More important: is there a simple workaround for those two (common)
cases?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use self.vars in class.method(parameters, self.vars) caccolangrifata Python 18 07-22-2011 10:22 PM
How do I declare global vars or class vars in Python ? Linuxguy123 Python 7 02-20-2009 06:45 PM
testing local vars and exceptions Raymond O'connor Ruby 1 01-31-2007 11:34 AM
app vars and cache vars Jon ASP .Net 3 12-14-2004 08:52 PM
GET-parameters an local vars Dirk Einecke Ruby 4 05-15-2004 08:55 PM



Advertisments