This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
Renaming Fragment -> Object and Template -> Class #9
metatablecat
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As I move into Catwork 0.5, I want to rename some objects to better reflect their behaviour, this discusses the transition timeline away from the original names.
Summary
Fragment
->Object
: This better reflects what Catwork uses them for, as spawnable chunks of async code, alternative names areAsyncObject
andCatworkObject
, but the initial name was chosen for simplicity.Template
->Class
: Templates create Fragments from a function. This is pratically just a class definition, so this name better suits this behaviour.Whats happening to existing methods
The existing methods will be deprecated, and eventually removed, the method names that are alternatives are the renames for methods
For example:
Catwork.Fragment
->Catwork.new
[1]Service:Template
->Service:Class
Service:CreateFragmentFromTemplate
->Service:CreateObjectFromClass
[2][1]
new
suits this constructor better, as its creating a single object under Catwork itself.[2] I might want a better name for this, feel free to reply with suggestions.
Beta Was this translation helpful? Give feedback.
All reactions