History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-835
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

DSL-friendly method syntax

Created: 06/Jun/07 09:10 PM   Updated: 06/Jun/07 09:10 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.7.8

Time Tracking:
Not Specified


 Description  « Hide
Allow methods to be called with macro syntax for better composition, example:

callable Block()

def blockTag(tagName as string, block as Block):
print "<${tagName}>"
block()
print "</${tagName}>"

def html(block as Block):
blockTag "html", block

def body(block as Block):
blockTag "body", block

def text(s as string):
print s

html:
body:
text "Hello, world!"



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.