IRC channel logs
2025-12-28.log
back to list of logs
<lechner>Hi, what's a way to define procedures depending on which architecture someone is on, please? I get "definition in expression context, where definitions are not allowed". Should I not use 'case'? <dsmith>You could have one define and put a lambda inside each case arm. <johnwcowan>How do you write a hygienic macro that accepts keyword arguments? Is it possible to use syntax-rules, or does it need to be done with syntax-case? <lechner>dsmith / Great suggestion, thank you! <mwette>johnwcowan: I don't think there is a syntax-rules way; there is syntax-case w/ a fender. <identity>are/were there plans for a fossil-fetch method? <ft>Is that a question for #guix? :) <identity>keep mixing them up because i read the «#gui-» part… <ft>No worris. It happened before. :) <lechner>Hi, what is the difference between floor-quotient and euclidean-quotient, please? <identity>lechner: ‘euclidean-quotient’ returns Q such that X = Q*Y + R and 0 <= R < |Y|, where X is the dividend, Y the divisor and R is the remainder; ‘floor-quotient’ returns Q such that Q = floor(X/Y) and X = Q*Y + R. as a consequence of that, (floor-quotient 123 -10) is -13 while (euclidean-quotient 123 -10) is -12 <identity>all of the integer division procedures work the same on positive integers, apart from the ceiling ones <lechner>identity / thanks so much for the bit about the negative numbers!