I'm looking at an OCaml source file that begins with the following instruction:
open! MiscParser
I understand that open MiscParser
means "open the MiscParser
module", but I don't know what the exclamation mark means.
adjective. If you describe a person or their character as open, you mean they are honest and do not want or try to hide anything or to deceive anyone. He had always been open with her and she always felt she would know if he lied. Synonyms: frank, direct, natural, plain More Synonyms of open.
I am open to receiving... means "you can send me group invitations, I don't mind, I welcome it".
interested in someone romantically. Derived from the phrase "nose open", implying that one is literally smelling the object of their affection, similar to the way dogs sniff other dogs buttocks. James got me open. Last edited on Oct 21 2013.
Definition of open (someone or something) to (someone or something) 1 : to allow (a particular group of people) to enter, use, or participate in (something) He opens his home to anyone who needs a place to stay.
It's to avoid triggering warnings if the open
shadows an exisiting identifier. See the manual.
Extending what Daniel said, it also tells the compiler to not warn if the open is not used anywhere in the code. One of the common things people do is to open! Core, since Core is such a useful library that one should just open it even they may not be using it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With