You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement an even safer language checker based on semantic analysis, forbidding the usage of blacklisted methods such as List#head and Option#get
Implement an even purer functional language checker based on semantic analysis, forbidding the usage of blacklisted methods such as println and IterableOnceOps#foreach
For each method, we need to know the type of the object. We also need subtyping information. For example, if IterableOnceOps#foreach is blacklisted, then all the methods of the form A#foreach, where A is a subclass of IterableOnceOps, should be disallowed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We can provide two use cases
List#head
andOption#get
println
andIterableOnceOps#foreach
For each method, we need to know the type of the object. We also need subtyping information. For example, if
IterableOnceOps#foreach
is blacklisted, then all the methods of the formA#foreach
, whereA
is a subclass ofIterableOnceOps
, should be disallowed.Beta Was this translation helpful? Give feedback.
All reactions