• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] y_hooks v4(ish)
#3
(2019-05-21, 11:57 AM)JustMichael Wrote: I'm a fan of both 2,3 and 4. Since they don't over complicate anything and looking at the rest it doesn't look like newbies will comprehend that and will most likely push them away.



Good.



(2019-05-21, 11:57 AM)JustMichael Wrote: I don't mind `continue` or `next` as keywords to move to the next hook maybe even `next` and `cancel` or `continue` and `break` (depends if you want to mix in with the current keywords)

Though thinking about it `continue` and `break` are keywords that exist in many languages, and I don't know how I feel about re-using them for a different cause, it might confuse people.



`next` and `cancel` seem like good alternatives, if you have no objections to them. They are easy to comprehend and they are not used elsewhere.



The major problem with new keywords is compatibility - making sure they don't break existing code which ma already use them as function or variable names.



(2019-05-21, 11:57 AM)JustMichael Wrote: I'm not a big fan of putting `hook` in front of every keyword that doesn't feel right to me at all.



Do you mean you don't like the `hook public` and `hook native` syntax as well? There isn't really another way to do that.
  Reply


Messages In This Thread
y_hooks v4(ish) - by Y_Less - 2019-05-19, 02:57 PM
RE: y_hooks v4(ish) - by JustMichael - 2019-05-21, 11:57 AM
RE: y_hooks v4(ish) - by Y_Less - 2019-05-21, 12:56 PM
RE: y_hooks v4(ish) - by JustMichael - 2019-05-21, 01:25 PM
RE: y_hooks v4(ish) - by ohmios - 2019-05-21, 02:02 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-05-21, 02:28 PM
RE: y_hooks v4(ish) - by Kar - 2019-05-21, 06:44 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-01, 01:17 AM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-01, 02:37 AM
RE: y_hooks v4(ish) - by JustMichael - 2019-06-01, 03:37 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-02, 11:56 AM

Forum Jump: