I keep typing the following:
var blogger = new Blogger()when I should be saying
def blogger = new Blogger()
def is used to define new methods and variables. The problem is that the JavaScript syntax compiles ... it just doesn't execute. I looks like a call to method var().
The code fails at runtime with groovy.lang.MissingPropertyException: "No such property: blogger for class: com.nfjs.hls.blog.pages.Login".
Just takes a little getting used to. Perhaps this is where polyglot programming breaks down a little ... switching between too similar languages.
No comments:
Post a Comment