slash-lang / slash

A new language for the web
http://slash-lang.org
MIT License
386 stars 22 forks source link

Allow class declaration with fully-qualified name #6

Open filp opened 11 years ago

filp commented 11 years ago

It would be nice to have the ability to declare classes without explicit nesting.

Currently:

class Foo {
  class Bar {
    class UhOh { }
  }
}

This can quickly become a bit cumbersome.

Suggestion:

class Foo::Bar::UhOh {
  def init { 'yay } 
}
pateketrueke commented 10 years ago

:+1:

lukateras commented 10 years ago

:+1:

tarnfeld commented 10 years ago

:+1: