Skip to content

Proposal: Remove endflavor #9

@oubiwann

Description

@oubiwann

What do you think about redefining the macro from this:

(defflavor <flavor-name> (<var1> <var2> ...) (<flav1> <flav2> ...)
  <opt1> <opt2> ...)

(defmethod (<operation>) <lambda-list> <form1> <form2>)

(defmethod (<operation> <method-type>) <lambda-list> <form1> <form2>)

(endflavor <flavor-name>)               ;Must be last after the methods

To this?

(defflavor <flavor-name> 
  (<var1> <var2> ...) 
  (<flav1> <flav2> ...)
  (<opt1> <opt2> ...)

  (defmethod (<operation>) <lambda-list> <form1> <form2>)

  (defmethod (<operation> <method-type>) <lambda-list> <form1> <form2>)

  ...)

Thus obviating the need for the endflavor ...

Maybe we could keep the old one for backwards compatibility, and name the new one deflavor? (one 'f' instead of two 😉)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions