local vars with punctuation

L

listrecv

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top