#must

Invocation

foo :: (x: int) -> bool #must {} - ensure caller receives return values marked with #must. 1 2 3

Examples

Examples:

toggle example
must.jai

  1. the problem that comes up is that sometimes you could ignore a return value that you actually really needed to pay attention to.
    “Arguments and Return Values” YouTube, uploaded by Jonathan Blow, Mar 10, 2015, https://youtu.be/CttIYXCUeVY?t=3515 

  2. the caller has to receive these values. if the caller does not receive these values, that’s an error.
    “Arguments and Return Values” YouTube, uploaded by Jonathan Blow, Mar 10, 2015, https://youtu.be/CttIYXCUeVY?t=3568 

  3. this is not for you to be all anally retentive and put #must on every single return value in your api to make sure people check status codes. no. this is for very specific, “you droppped this resource on the floor kind of cases”.
    “Arguments and Return Values” YouTube, uploaded by Jonathan Blow, Mar 10, 2015, https://youtu.be/CttIYXCUeVY?t=3805 

jailang 2019 pixeldroid
https://github.com/pixeldroid/jailang
programming pages theme v0.5.21 (https://github.com/pixeldroid/programming-pages)