February 27th: A Wrap

I figured out a way to generalize control panels out to any map or array values that need setting. I’ve made a utility class that wraps object parameters, array values, and map values alike into tiny little anonymous get/set functions  with identical signatures. The control panels then just need to be passed these functions and they should work perfectly.

That said, I’m a bit stuck on the type checking portion. This isn’t strictly necessary: I could always make it so these get/set functions aren’t type safe. However, I really appreciate the extra layer of security and predictability that comes with type checking, so I’d like to be as thorough as possible in that regard. Apparently, though, I’m not as familiar with how Haxe handles this sort of situation as I thought I was, so it will take me a bit to sort through these problems.

Advertisements

About problemmachine

What is the nature of your problem? Can we modify the nature of your problem? Can your problem be touched? Eaten? May we eat your problem for you? May we eat your soul for you? Would you like a replacement problem? We make problems. We eat souls. We crap solutions. We are Problem Machine.
This entry was posted in Daily Update, Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s