local vars with punctuation

Discussion in 'Ruby' started by listrecv@gmail.com, Apr 27, 2006.

  1. Guest

    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?
    , Apr 27, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon

    app vars and cache vars

    Jon, Dec 14, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    392
  2. Linuxguy123
    Replies:
    7
    Views:
    683
    Paddy O'Loughlin
    Feb 20, 2009
  3. caccolangrifata
    Replies:
    18
    Views:
    392
    Chris Torek
    Jul 22, 2011
  4. Dirk Einecke

    GET-parameters an local vars

    Dirk Einecke, May 15, 2004, in forum: Ruby
    Replies:
    4
    Views:
    93
    Dirk Einecke
    May 15, 2004
  5. Raymond O'connor

    testing local vars and exceptions

    Raymond O'connor, Jan 31, 2007, in forum: Ruby
    Replies:
    1
    Views:
    91
    Pit Capitain
    Jan 31, 2007
Loading...

Share This Page