Android Notepad tutorial ported to Mirah

36 views
Skip to first unread message

Marko Kocić

unread,
Apr 12, 2011, 1:33:47 PM4/12/11
to mi...@googlegroups.com
I have ported Notepad Android tutorial to Mirah.
The code could be found here:

https://github.com/markokocic/android-notepad-mirah

I'm still new to Mirah and Android, and don't have neither Mirah nor Ruby experience, so I would be very thankful for any feedback and improvements that you could suggest.

Regards,
Marko

John Woodell

unread,
Apr 12, 2011, 1:55:16 PM4/12/11
to mi...@googlegroups.com
Thanks so much for taking this on!

For something as common as returning void, I hope headius will identify the appropriate syntax, even if the parser is more forgiving.

Rib Rdb

unread,
Apr 12, 2011, 1:59:11 PM4/12/11
to mi...@googlegroups.com, John Woodell


On Tue, Apr 12, 2011 at 10:55 AM, John Woodell <mando....@gmail.com> wrote:
Thanks so much for taking this on!

For something as common as returning void, I hope headius will identify the appropriate syntax, even if the parser is more forgiving.


What do you mean? What wrong with this?

def foo(...):void

John Woodell

unread,
Apr 12, 2011, 2:06:45 PM4/12/11
to Rib Rdb, mi...@googlegroups.com
The colon with a space after looks odd, in the sample code

  def onResume(): void
  def saveState: void

I think these will also parse

  def saveState() void
  def saveState()void
  def saveState :void

but this will not.

  def saveState void

consiliens

unread,
Apr 14, 2011, 12:35:46 AM4/14/11
to mi...@googlegroups.com
On 04/12/2011 11:55 AM, John Woodell wrote:
>
> For something as common as returning void, I hope headius will identify
> the appropriate syntax, even if the parser is more forgiving.

Should the parser be less forgiving? Otherwise all the strange
variations on return syntax will likely be used.

Reply all
Reply to author
Forward
0 new messages