Post Reply 
compiled or not?
12-17-2015, 09:58 PM (This post was last modified: 12-17-2015 10:01 PM by hpfx.)
Post: #10
RE: compiled or not?
(12-17-2015 03:39 PM)Wes Loewer Wrote:  When I was first learning programming, one thing that made sense to me was the idea that you had to define a new word before you could use it. Instead of using forward declarations, the prof had us just define the function first:

The prof found a nice story to explain why you should define these functions first.
Ok, at that time it was expensive in term of ressource to have language that do not require that every symbols to be defined. In fact, it's a technology issue.

Do you also define every builtin functions you are going to use in your program ? Of course no, because you are not obliged to and because you probably can't do, by the way. Nevertheless aren't builtins like "words" to be defined too ?...
For me, I even don't make a difference between builtins and my functions : they are both available.

When I build a program I (would) like to organize the order of my function not because of the technology, but because of logic, or to group functions by domain, or whatever else... For example I like to start with my entry point, where is major steps of the process that describe quite well the program...
It's a pain to mentally build a kind of dependance graph to place definitions or to forward declare.

I understand it worked like that on 30 year old languages, that's ok.
Also, it's not a strong issue on hpprime while programs remain small.
But if you want bigger program, it's maybe something to think about...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
compiled or not? - ji3m - 12-15-2015, 12:41 AM
RE: compiled or not? - luisphysics - 12-15-2015, 02:26 AM
RE: compiled or not? - eried - 12-15-2015, 04:03 AM
RE: compiled or not? - hpfx - 12-15-2015, 07:02 AM
RE: compiled or not? - Wes Loewer - 12-17-2015, 03:39 PM
RE: compiled or not? - hpfx - 12-17-2015 09:58 PM
RE: compiled or not? - Wes Loewer - 12-18-2015, 01:12 PM
RE: compiled or not? - hpfx - 12-18-2015, 05:15 PM
RE: compiled or not? - ji3m - 12-15-2015, 01:50 PM
RE: compiled or not? - ji3m - 12-16-2015, 01:04 PM
RE: compiled or not? - ji3m - 12-18-2015, 07:27 PM
RE: compiled or not? - eried - 12-19-2015, 12:00 AM
RE: compiled or not? - ji3m - 12-19-2015, 05:08 AM



User(s) browsing this thread: 1 Guest(s)