salmanahmad / dog

The Dog Programming Language
http://www.dog-lang.org
Apache License 2.0
0 stars 0 forks source link

Optional args #19

Closed zahanm closed 11 years ago

zahanm commented 12 years ago
DEFINE rank_k_teachers FOR shell ON me, teachers USING k = 5 DO
  PERFORM "python ranking.py"
  RETURN teachers_list
END

Throws an error at compile time. Not urgent.

salmanahmad commented 12 years ago

For the time being, a simple workaround is to just leave off the "USING" clause. You can still pass in optionals args when calling the function:

COMPUTE rank_k_teacher ON me, users USING k = 10

salmanahmad commented 11 years ago

Optional arguments are no longer supported in Dog. Not to mention that this is an old issue that we never quite got around to addressing. Closing...