473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Parse or Pass?

I'm very confused...I want to describe passing variables to functions
and I've seen these two words used in very similar contexts.

Is there a difference between them?

Sep 4 '07 #1
5 3255
frenchy64 wrote:
I'm very confused...I want to describe passing variables to functions
and I've seen these two words used in very similar contexts.

Is there a difference between them?
In general, "parsing" is analyzing the grammatical structure of a
string. People sometimes talk loosely about "parsing the command line".
but I don't think that's normally applied to providing the actual
arguments (corresponding to the definition's "formal parameters") when a
function is called - that's argument passing.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Sep 4 '07 #2
In general, "parsing" is analyzing the grammatical structure of a
string. People sometimes talk loosely about "parsing the command line".
but I don't think that's normally applied to providing the actual
arguments (corresponding to the definition's "formal parameters") when a
function is called - that's argument passing.

regards
Steve
Thanks Steve, great post!

Sep 4 '07 #3
In general, "parsing" is analyzing the grammatical structure of a
string. People sometimes talk loosely about "parsing the command line".
but I don't think that's normally applied to providing the actual
arguments (corresponding to the definition's "formal parameters") when a
function is called - that's argument passing.
I find that people often use "parsing" in contexts where my
(non-native) language feeling says it should not be used.

For example, people talk about "parsing" trees, meaning that
they perform some processing on the tree with the objective
of extracting certain information. In the same sense, I
have seen people "parsing" lists - meaning they iterate over
the list.

If I extrapolate my experience with German IT language, I
think people often use terminology they have not fully
understood. I often ask my students what the difference
between "eingeben", "ausgeben", "übergeben" und
"zurückgeben" is when they start saying that "die
Funktion gibt das Ergebnis aus".

Regards,
Martin
Sep 4 '07 #4
Martin v. Löwis wrote:
<cut>
If I extrapolate my experience with German IT language, I
think people often use terminology they have not fully
understood. I often ask my students what the difference
between "eingeben", "ausgeben", "übergeben" und
"zurückgeben" is when they start saying that "die
Funktion gibt das Ergebnis aus".

Regards,
Martin
Interesting, I lived my early childhood in Germany and somehow, now I
see it all written in once, I have the feeling I get more confused. So
would you agree with my interpretation?

Eingeben = <Giving inInput: (A bit of) data from outside the function
Ausgeben = <Giving outOutput: (A bit of) data to display, network
connection or file
Zurückgeben = <Giving backReturn: (altered)(bits of) data (from Input)
to Output

Can I assume that Return in general always means that the particular
function has exited with that? If not what is the difference then
between Output and Return?

Another thing is that with the above statement the opposite could be
true too, meaning that Input in the German meaning would only been done
when the function is initiated but how do you call the other input then?
The appropriate German word would be "Zugeben", which translates to
Enter (Giving too).

And then we have "Übergeben" which translates to throughput (giving
over), which in my view is just something that gets data in and puts it
out, contextually unaltered. But would that do that with exiting the
function or not? If it's not both what's the other one called?
"Übernemen" perhaps (Taking over)?

Hmm feels like textbook classics, only if I knew which book, probably
programming 101 :-)

--
mph
Sep 5 '07 #5
On 2007-09-05, Martin P. Hellwig <mh******@xs4all.nlwrote:
Martin v. Löwis wrote:
Eingeben = <Giving inInput: (A bit of) data from outside the function
Ausgeben = <Giving outOutput: (A bit of) data to display, network
connection or file
Zurückgeben = <Giving backReturn: (altered)(bits of) data (from Input)
to Output

Can I assume that Return in general always means that the particular
function has exited with that? If not what is the difference then
between Output and Return?
It depends on your point of view imho.

You can describe a function call from 'outside', ie I give it values for its
parameters, and it returns me a computed return value.
You can describe the same thing from 'inside', ie I get values from my caller,
compute a result, and output the result.
And then we have "Übergeben" which translates to throughput (giving
over), which in my view is just something that gets data in and puts it
out, contextually unaltered. But would that do that with exiting the
I would consider this yet another view, namely performance. Function calls are
stil happening, but you focus more on the #calls/second, ie throughput.
So depending on what one is interested in, I think, one structures and
describes what is happening in a different way.
Wouldn't that be a possible explanation for all the subtle different ways of
describing the same thing?

Albert

Sep 5 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: new kid | last post by:
hi, i am new to php programming.i am getting a parse error in configuratuion file of the web site which i am designing ,i.e(th file in which u specify the paths to various folders like folder...
2
by: News charter | last post by:
I have a form that I need to pass the sales tax. Works great if sales tax is an interger. When I try to parse the sales tax with decimal place with Int32.Parse method I get exception. The...
3
by: Mark | last post by:
How do you parse a currency string to a decimal? I'd like to avoid having to parse the number out, removing the $ manually. That sounds like a hack. There are times that this string will be...
5
by: Adam Klobukowski | last post by:
Hello I need to convert some strings int doubles. Unfortunetly strings do not follow my country culture standarts (we use , to separate decimal from fraction, but strings use . there etc.). ...
8
by: cadilhac | last post by:
Hi, I have the following code: public enum MyColors { Red, Green, Blue } MyColors c = (MyColors)Enum.Parse(typeof(MyColors), "abcd"); Why do I get c = "abcd" after this code instead of...
5
by: Navid Azimi | last post by:
What's the best way to parse a currency string to a decimal given the possibility of multiple currencies? That is, my numeric string can be ($12.00) or -£12.00; in either case I want -12.00 to be...
9
by: Python.LeoJay | last post by:
Dear all, i need to parse billions of numbers from a file into float numbers for further calculation. i'm not satisfied with the speed of atof() function on my machine(i'm using visual c++ 6)....
3
by: Laurent Rahuel | last post by:
Hi, I have a much to smart problem for my brain. Here is the deal : I got a metaclass named Foo Then I got two others classes:
10
by: Michael B. Trausch | last post by:
Alright... I am attempting to find a way to parse ANSI text from a telnet application. However, I am experiencing a bit of trouble. What I want to do is have all ANSI sequences _removed_ from...
1
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming. FYI Although I have called this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.