Hello guys,
in Scala, if I want to implement a DSL, is there a way to do the following:
I have an Object called "Draw" which contains the function def draw(d:Drawable)
how can I make it so that I can import the Object and call it outside the object like:
draw ball
if ball extends the Drawable trait? The problem is that I want to use draw in a kind of infix notation, but I dont want to qualify the function draw by denoting it's implementing class/object.