Suggested enhancements to PropertyAttribute

View: New views
2 Messages — Rating Filter:   Alert me  

Suggested enhancements to PropertyAttribute

by gregcnagel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Just two ideas that would make my life easier:

* An Internal option that works like Protected.

Ex:

[getter(Data, Protected: true, Internal: true)]
_data

Converts to:

protected internal Data:
    get:
        return data

_data

* Documentation comments on the field duplicated to the property node
itself.

Ex:

[getter(Data)]
_data
"""Stores the data for this object."""

Converts to:

Data:
"""Stores the data for this object."""
   get:
      return _data

_data
"""Stores the data for this object."""

Any thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang
-~----------~----~----~----~------~----~------~--~---


Re: Suggested enhancements to PropertyAttribute

by Marcus Griep-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

These sound like good options to me.  They shouldn't be very hard to implement either.

Marcus Griep
——
את.ψο´

On Mon, Jun 23, 2008 at 9:14 PM, hangar <NagelBagel@...> wrote:

Just two ideas that would make my life easier:

* An Internal option that works like Protected.

Ex:

[getter(Data, Protected: true, Internal: true)]
_data

Converts to:

protected internal Data:
   get:
       return data

_data

* Documentation comments on the field duplicated to the property node
itself.

Ex:

[getter(Data)]
_data
"""Stores the data for this object."""

Converts to:

Data:
"""Stores the data for this object."""
  get:
     return _data

_data
"""Stores the data for this object."""

Any thoughts?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang
-~----------~----~----~----~------~----~------~--~---