SO the question is, Is it good to say that create ...
# announcements
j
SO the question is, Is it good to say that create constructors with default values is expensive because it must spent resources on defining the other instances and also carry on woth all definitions of the constructors
v
I think is not good to say it, define what expensive means for you, a compilator can carry that kind of things easily, is like saying dependency injection is expensive because generate some extra code to work… I think is more expensive the time that you will broke your head trying to skip a constructor.
a
Expensive in what way? Performance? Bytcode-Size?
j
Yes, in perfomance and byteCode size. Thank you @vitrox1. This make sense for me.
c
@Jimmy Alvarez It’s not expensive, don’t let that stop you from defining whatever default values make sense for you
j
Super @cedric, thank you for your comment.
That is a very good feature but I was wondering about that.